#!/usr/bin/env sh

[ "$UID" -ne "0" ] && {
    printf '%b\n' "Only Root!"
    exit 1
}

VERSAO="$(ls -1 /boot/vmlinuz* | sed -n '$p')"

sed -ri "s/\/boot\/vmlinuz-[0-9.]+-gentoo/${VERSAO}/" /etc/lilo.conf
